package com.smart.thrift.model.wrapper;

import lombok.Data;

@Data
public class ThriftClientWrapper {

    private String thriftServiceName;

    private String thriftServiceSignature;

    private Class<?> type;

    private Class<?> clientType;

    private double version;

    private final Object thriftClient;

    private final static Double DEFAULT_VERSION = 1.0;

    public ThriftClientWrapper(String thriftServiceName, Class<?> type, Object thriftService) {
        this(thriftServiceName, type, thriftService, DEFAULT_VERSION);
    }

    public ThriftClientWrapper(String thriftServiceName, Class<?> type, Object thriftClient, double version) {
        this.thriftServiceName = thriftServiceName;
        this.type = type;
        this.thriftClient = thriftClient;
        this.version = version;
    }
}
